<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>景区列表</title>
</head>
<body>
  <a href="1111" >添加</a>
<table width="100%" border="1">
  <tr>
    <td width="11%">序号</td>
    <td width="13%">名称</td>
    <td width="21%">类别</td>
    <td width="22%">级别</td>
    <td width="17%">城市</td>
    <td width="16%">操作</td>
  </tr>
 <c:forEach var="i" items="${scenicList}" varStatus="s">
  <tr>
    <td>${s.count}</td>
    <td>${i.name}</td>
    <td>${i.categoryName}</td>
    <td>${i.levelName}</td>
    <td>${i.cityBelongsTo}</td>
    <td>
    <a href="1111" >修改景区信息</a>&nbsp;
    <c:if test="${!i.isDeletable}">
    	删除
    </c:if>
      <c:if test="${i.isDeletable}">
    	<a href="scenic_deleteOneScenic.action?scenicId=${i.id}" onclick="return confirm('delete?')" >删除</a>
      </c:if>
    </td>
  </tr>
  </c:forEach>
</table>
</body>
</html>